Function Reference

_AD_GetADOProperties

Retrieves all properties of an ADO object (Connection, Command).

#Include <AD.au3>
_AD_GetADOProperties($sADOobject[, $sProperties = ""])

 

Parameters

$sADOobject ADO object for which to retrieve the properties. Can be either "Connection" or "Command"
$sProperties Optional: Comma separated list of properties to return (default = "" = return all properties)

 

Return Value

Success: Returns a one based two-dimensional array with all properties and their values of the specified object
Failure: "", sets @error to:
    1 - $sADOObject is invalid. Should either be "Command" or "Connection"

 

Remarks

None.

 

Related

 

See Also

ADO Command: http://msdn.microsoft.com/en-us/library/ms675022(v=VS.85).aspx, ADO Connection: http://msdn.microsoft.com/en-us/library/ms681546(v=VS.85).aspx

 

Example


#AutoIt3Wrapper_AU3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#AutoIt3Wrapper_AU3Check_Stop_OnWarning=Y
#include <AD.au3>

; Open Connection to the Active Directory
_AD_Open()
If @error Then Exit MsgBox(16, "Active Directory Example Skript", "Function _AD_Open encountered a problem. @error = " & @error & ", @extended = " & @extended)

; *****************************************************************************
; Example 1
; Display all properties of the ADO Connection Object
; *****************************************************************************
Global $aResult = _AD_GetADOProperties("Conn")
_ArrayDisplay($aResult, "ADO Connection Object")

; *****************************************************************************
; Example 2
; Display all properties of the ADO Command Object
; *****************************************************************************
$aResult = _AD_GetADOProperties("Com")
_ArrayDisplay($aResult, "ADO Command Object")

; *****************************************************************************
; Example 3
; Display thre properties of the ADO Command Object
; *****************************************************************************
$aResult = _AD_GetADOProperties("Command", "SearchScope,Column Names only,sort on")
_ArrayDisplay($aResult, "ADO Command Object")